package com.bank.model.enums;

import lombok.Getter;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/4/5 13:59
 */
@Getter
public enum FileTypeEnum {

    NORMAL(1,"normal"),

    ;
    private Integer code;
    private String message;

    private FileTypeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static String gertName(int code){
        for(FileTypeEnum item: values()){
            if(item.getCode()==code){
                return item.message;
            }
        }
        return "";
    }
}